package com.allwees.bs.c.module.app.vo;

import com.allwees.bs.core.modelbase.constant.ErrorMessage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
//@ApiModel(value="通过网络流图片上传实体")
public class Upload2UrlVo {
//	@ApiModelProperty(value="",example="1")
	@NotEmpty(message = ErrorMessage.PARAM_NOT_NULL)
	@Pattern(regexp = "-1|0|1|2|3|4|5", message = ErrorMessage.PARAM_TYPE_NOT_MATCH)
	private String type;

	@NotNull(message=ErrorMessage.PARAM_NOT_NULL)
	@Size(min=1,max=100,message=ErrorMessage.PARAM_LENGTH_ERROR)
//	@ApiModelProperty(value="网络流图片,每次最多支持100张")
	private List<String> urls;

	@NotNull(message=ErrorMessage.PARAM_NOT_NULL)
	@Size(min=1,max=100,message=ErrorMessage.PARAM_LENGTH_ERROR)
//	@ApiModelProperty(value="对应图片的key,需要保证唯一,并且不重复需要和url长度一致")
	private List<String> keys;

}
